<?php
class Application_Form_Smtp extends Zend_Form
{
	public function init()
	{
		
		$this->setName('smtp');

		$id = new Zend_Form_Element_Hidden('id');
		$id->addFilter('Int');

		$server = new Zend_Form_Element_Text('server');
		$server->setLabel('Server')->setRequired(true);

		$port = new Zend_Form_Element_Text('port');
		$port->setLabel('port')->setRequired(true);

		$username = new Zend_Form_Element_Text('username');
		$username->setLabel('Username')->setRequired(true);

		$password = new Zend_Form_Element_Text('password');
		$password->setLabel('Password')->setRequired(true);

		$tls = new Zend_Form_Element_Text('tls');
		$tls->setLabel('Tls')->setRequired(true);


		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')->setLabel('Submit');

		$this->addElements(array($id, $server, $port, $username, $password, $tls, $submit));
	}
}